<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/struts-tags" prefix="s" %> 

<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<title>报名系统登陆</title><%@include file="res.jsp"%><script
			src="js/plugins/iealert/iealert.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css"
			href="js/plugins/iealert/style.css" />
		<script type="text/javascript">$(document).ready(function() {$("body").iealert();});</script>
	</head>
	<body>
		<div class="header">
			<a href="index.html" class="logo centralize"></a>
		</div>
		<div class="login" id="login">
			<div class="wrap">
				<h1>
					会员登陆
					<c:if test="${error == '1'}">
						<span style="color: red; font-size: 10px; font-weight: lighter;">用户名或者密码错误</span>
					</c:if>
					<c:if test="${error == '2'}">
						<span style="color: red; font-size: 10px; font-weight: lighter;">还没有通过审核</span>
					</c:if>
					<%
						request.getSession().removeAttribute("error");
					%>
					<span style="color: red; font-size: 10px; font-weight: lighter;" style="color:red"><s:fielderror fieldName="email"/></span>
					<span style="color: red; font-size: 10px; font-weight: lighter;" style="color:red"><s:fielderror fieldName="password"/></span>
				</h1>
				<form action="page/login_checkLogin.action" method="post"
					id="validate">
					<div class="row-fluid">
						<div class="input-prepend">
							<span class="add-on"><i class="icon-envelope"></i>
							</span>
							<input type="text" value="${email }" name="email"
								placeholder="邮箱" class="validate[required],minSize[3]" /> 
						</div>
						<div class="input-prepend">
							<span class="add-on"><i class="icon-exclamation-sign"></i>
							</span>
							<input type="password" name="password" value="${password }"
								placeholder="密码" class="validate[required],minSize[6]" />
						</div>
						<div class="dr">
							<span></span>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span8 remember">
							<input type="checkbox" value="1" name="remember"
								checked="checked" />
							记住我
						</div>
						<div class="span4 TAR">
							<input type="submit" class="btn btn-block btn-primary" value="登陆" />
						</div>
					</div>
				</form>
				<div class="dr">
					<span></span>
				</div>
				<div class="row-fluid">
					<div class="span8">
						<button class="btn btn-block" onClick="loginBlock('#forgot');">
							忘记密码
						</button>
					</div>
					<div class="span4">
						<button class="btn btn-warning btn-block"
							onClick="document.location.href = '<%=basePath %>page/login_enterRegist.action';">
							注册
						</button>
					</div>
				</div>
			</div>
		</div> 
		<div class="login" id="forgot">
			<div class="wrap">
				<h1>
					忘记你的密码?(此功能未完善)
				</h1>
				<div class="row-fluid">
					<p>
						请输入你的邮箱找回密码
					</p>
					<div class="input-prepend">
						<span class="add-on"><i class="icon-envelope"></i>
						</span>
						<input type="text" name="email" placeholder="邮箱" />
					</div>
					<div class="dr">
						<span></span>
					</div>
				</div>
				<div class="row-fluid">
					<div class="span4">
						<button class="btn btn-block" onClick="loginBlock('#login');">
							返回
						</button>
					</div>
					<div class="span4"></div>
					<div class="span4 TAR">
						<button class="btn btn-block btn-primary">
							发送
						</button>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>